#ifndef __MYSTDIO_H__
#define __MYSTDIO_H_

#include<string.h>

#define FLASH_NOW 1
#define FLASH_LINE 2
#define FLASH_ALL 4
#define SIZE 1024

typedef struct IO_BUF
{
    int fileno;
    int flag;
    char in_buffer[1024];
    char out_buffer[1024];
    int in_pos;
    int out_pos;

}_FILE;

_FILE* _fopen(const char* filename, const char* flag);
int _fwrite(_FILE* fp, const char* s, size_t len);
void _fclose(_FILE* fp);


#endif
